package cutetd.model;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable ( identityType = IdentityType.APPLICATION, detachable = "true" )
public class M_Navi {
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private String keyString;
	
	@Persistent
	private String displayName;
	
	@Persistent
	private String parentKey = "";
	
	/**
	 * type: page, news, goods, custom, parentRoot
	 */
	@Persistent
	private String type;
	
	@Persistent
	private String url;
	
	@Persistent
	private int sort;
	
	@Persistent
	private boolean boolDisplay;

	public String getKeyString() {
		return keyString;
	}

	public void setKeyString(String keyString) {
		this.keyString = keyString;
	}

	public String getDisplayName() {
		return displayName;
	}

	public void setDisplayName(String displayName) {
		this.displayName = displayName;
	}

	public String getParentKey() {
		return parentKey;
	}

	public void setParentKey(String parentKey) {
		this.parentKey = parentKey;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public int getSort() {
		return sort;
	}

	public void setSort(int sort) {
		this.sort = sort;
	}

	public boolean isBoolDisplay() {
		return boolDisplay;
	}

	public void setBoolDisplay(boolean boolDisplay) {
		this.boolDisplay = boolDisplay;
	}
}
